package com.aya.modules.friend;

import com.aya.tb.annotation.RequestMapping;
import com.aya.tb.annotation.ResponseBody;
import com.aya.project.UserContext;
import org.springframework.stereotype.Controller;

import java.util.Arrays;
import java.util.List;

@Controller
public class FriendAction {

    @ResponseBody
    @RequestMapping(code = FriendCodes.FRIEND_LIST)
    public Object list(UserContext userContext) {
        Long userId = userContext.getUserId();
        //TODO dao 查询用户的好友列表，然后返回
        List<String> friendNames = Arrays.asList("吕六楼", "王北星");
        return friendNames;
    }
}
